home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20010306-20010921
/
000083_news@columbia.edu_ 26 Apr 2001 15:04:18 GMT.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.os.linux.networking,comp.protocols.kermit.misc
Subject: Re: copying a file to a ftp-server
Date: 26 Apr 2001 15:04:18 GMT
Organization: Columbia University
Lines: 45
Message-ID: <9c9ddi$i7f$1@newsmaster.cc.columbia.edu>
References: <20010426.13080200@risa.athome> <9c9b2o$gej$1@newsmaster.cc.columbia.edu> <m3r8yfsovr.fsf@cc253090-a.sumt1.nj.home.com>
NNTP-Posting-Host: watsun.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 988297458 18671 128.59.39.2 (26 Apr 2001 15:04:18 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 26 Apr 2001 15:04:18 GMT
Xref: newsmaster.cc.columbia.edu comp.os.linux.networking:329856 comp.protocols.kermit.misc:12369
In article <m3r8yfsovr.fsf@cc253090-a.sumt1.nj.home.com>,
Dan Espen <dane@mk.telcordia.com> wrote:
: fdc@watsun.cc.columbia.edu (Frank da Cruz) writes:
: > In article <20010426.13080200@risa.athome>,
: > <christian.verbeek@gmd.de> wrote:
: > : how do i put a single file to a ftp server from the command line. With=20
: > : the ftp program i always end up in interactive mode, but i want to do=20
: > : this from within a script.
: > :
: > : So i need something like: ftpcopy myfile ftp://myftpserver
: > :
: > If you use the new Kermit FTP client:
:
: Thats nice but not necessary.
:
: Put the username and password in your .netrc. You don't want
: your password in a script, and its simpler that way. Then do this:
:
: (\
: echo "put filename\n"\
: "close\n"\
: "quit\n"\
: ) | ftp hostname
:
There are two separate issues: How to put a file from the command line,
and how to protect passwords.
If a particular FTP program lets you put files from the command line,
that would seem to address the first issue better than editing files and
stuffing echo commands into the standard input of a dumb ftp client,
which might or might not work, depending on the client.
As for password safety, putting passwords in the .netrc file is no safer
than putting them in scripts. The only solution to this problem is to
use secure authentication methods. But the limiting factor in this case
is whether a secure server is available on the other end. At the moment,
this is generally not the case. But increasingly, it can be. As noted
previously, secure FTP servers are available:
http://www.columbia.edu/kermit/ftpd.html
and as time goes on they will find their way into standard UNIX
distributions.
- Frank